﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Themes/Main.master" AutoEventWireup="true"
    CodeBehind="TeacherManager.aspx.cs" Inherits="TrainingsApp.IPADApp.Master.TeacherManager" %>

<%@ Register Assembly="DevExpress.Web.ASPxGridView.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.1" Namespace="DevExpress.Web.ASPxEditors"
    TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v11.1" Namespace="DevExpress.Web.ASPxGridView"
    TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .searchTab
        {
            margin-bottom: 10px;
            background-color: #fff;
            border: 2px solid #ccc;
        }
        .searchTab .lab, .searchTab .input
        {
            padding: 8px;
        }
        .searchTab .lab
        {
            padding-left: 20px;
            font-weight: 600;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table cellpadding="0" cellspacing="0" border="0" class="searchTab" width="100%">
        <tr>
            <td class="lab">
                学科 :
            </td>
            <td class="input">
                <dx:ASPxComboBox ID="cbxCourse" runat="server" Width="130">
                </dx:ASPxComboBox>
            </td>
            <td class="lab">
                学校名称 :
            </td>
            <td class="input">
                <dx:ASPxTextBox ID="txtSchoolName" runat="server" Width="180" MaxLength="100">
                </dx:ASPxTextBox>
            </td>
            <td class="lab">
                用户名 :
            </td>
            <td class="input">
                <dx:ASPxTextBox ID="txtUserName" runat="server" Width="180" MaxLength="100">
                </dx:ASPxTextBox>
            </td>
            <td class="lab" rowspan="2" valign="middle" align="center">
                <dx:ASPxButton ID="btnSearch" runat="server" Width="80" Height="45" Text="筛选">
                </dx:ASPxButton>
            </td>
        </tr>
        <tr>
            <td class="lab">
                身份证 :
            </td>
            <td class="input">
                <dx:ASPxTextBox ID="txtIdCard" runat="server" Width="180" MaxLength="100">
                </dx:ASPxTextBox>
            </td>
            <td class="lab">
                手机 :
            </td>
            <td class="input">
                <dx:ASPxTextBox ID="txtMobile" runat="server" Width="180" MaxLength="100">
                </dx:ASPxTextBox>
            </td>
            <td class="lab">
                邮箱 :
            </td>
            <td class="input">
                <dx:ASPxTextBox ID="txtEmail" runat="server" Width="180" MaxLength="100">
                </dx:ASPxTextBox>
            </td>
        </tr>
    </table>
    <dx:ASPxGridView ID="aspDataSource" Width="100%" runat="server" AutoGenerateColumns="False"
        KeyFieldName="UserId" EnableCallBacks="false" OnPageIndexChanged="aspDataSource_PageIndexChanged"
        OnCustomButtonCallback="aspDataSource_CustomButtonCallback">
        <Columns>
            <dx:GridViewDataTextColumn VisibleIndex="0" FieldName="UserName" Caption="用户名">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn VisibleIndex="2" FieldName="Name" Caption="姓名">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn VisibleIndex="3" FieldName="GenderName" Caption="性别">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn VisibleIndex="4" FieldName="IdentityCard" Caption="身份证">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn VisibleIndex="5" FieldName="Mobile" Caption="手机">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn VisibleIndex="6" FieldName="Email" Caption="邮箱">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn VisibleIndex="7" FieldName="SchoolName" Caption="学校名称">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn VisibleIndex="8" FieldName="CourseName" Caption="学科名称">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn VisibleIndex="8" FieldName="Materialsname" Caption="教材名称">
            </dx:GridViewDataTextColumn>
            <dx:GridViewCommandColumn VisibleIndex="9" Width="230" Caption="操作">
                <CustomButtons>
                    <dx:GridViewCommandColumnCustomButton ID="btnEdit" Text="编辑">
                    </dx:GridViewCommandColumnCustomButton>
                    <dx:GridViewCommandColumnCustomButton ID="btnNew" Text="新增">
                    </dx:GridViewCommandColumnCustomButton>
                </CustomButtons>
            </dx:GridViewCommandColumn>
        </Columns>
        <Templates>
            <EmptyDataRow>
                <dx:ASPxHyperLink ID="btnNew" runat="server" Text="新增教师" Font-Names="微软雅黑" Font-Size="10.5" NavigateUrl="TeacherEdit.aspx">
                </dx:ASPxHyperLink>
            </EmptyDataRow>
        </Templates>
        <Settings ShowGroupPanel="false" ShowFilterBar="Hidden" ShowFilterRow="false" />
        <SettingsBehavior AllowSort="false" ConfirmDelete="true" />
        <SettingsText ConfirmDelete="是否删除所选记录?" />
        <SettingsPager PageSize="20">
        </SettingsPager>
        <Settings ShowFilterRow="False" />
    </dx:ASPxGridView>
</asp:Content>
